package com.virgo.demo.support.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.virgo.common.entity.ListDataVo;
import com.virgo.demo.support.domain.DictDataDo;
import com.virgo.demo.support.domain.bo.DictDataBo;
import com.virgo.demo.support.domain.vo.DictDataSelectVo;
import com.virgo.demo.support.domain.vo.DictDataVo;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

public interface DictDataService extends IService<DictDataDo> {

	/**
	 * 编辑字典值
	 * @param dictDataBo DictDataBo
	 */
	void saveDictData(DictDataBo dictDataBo);

	/**
	 * 删除字典值
	 * @param ids String
	 */
	void deleteDictData(String ids);

	/**
	 * 字典值列表
	 * @param request HttpServletRequest
	 * @return ListDataVo<DictDataVo>
	 */
	ListDataVo<DictDataVo> findList(HttpServletRequest request);

	/**
	 * 获取字典值的下拉
	 * @param dictType String
	 * @return List<DictDataSelectVo>
	 */
	List<DictDataSelectVo> dictDataList(String dictType);
}